package actives;

import java.awt.event.ActionEvent;
import org.bukkit.entity.Player;

public class FarmingActive extends Active {

	public FarmingActive(Player player) {
		super(player);
		timer.setInitialDelay(0);
	}

	@Override
	public void actionPerformed(ActionEvent event) {	
	}

	private void reduceHand() {
		if (player.getItemInHand().getAmount() - 1 == 0) {
			player.setItemInHand(null);
		}
		else {
			int amount = player.getItemInHand().getAmount() - 1;
			player.getItemInHand().setAmount(amount);
		}
	}
}

